package com.songcha.library_business.ui.adapter

import android.widget.ImageView
import com.songcha.library_business.bean.banner.BannerBean
import com.songcha.library_common.util.GlideUtil
import com.zhpan.bannerview.BaseBannerAdapter
import com.zhpan.bannerview.BaseViewHolder
import com.songcha.library_business.R

class SimpleBannerAdapter : BaseBannerAdapter<BannerBean.DataBean>() {

    override fun bindData(holder: BaseViewHolder<BannerBean.DataBean>, data: BannerBean.DataBean, position: Int, pageSize: Int) {
       val iv=holder.findViewById<ImageView>(R.id.business_iv)
       GlideUtil.loadNetImage(iv,data.url)
    }

    override fun getLayoutId(viewType: Int): Int {
        return R.layout.business_item_simple_banner
    }

}